<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/easyui.css">
<link rel="stylesheet" type="text/css" href="css/icon.css">
<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
<title>管理员登陆</title>
</head>
<body style='background-color: #EAF2FF'>
<div  style="width:280px;position: absolute;left:50%;margin-left:-140px;margin-top:200px">
	 <div class="easyui-panel" title="登陆" style="width:240px;padding:10px;">
        <form id="ff" action="login" method="post">
            <table border=0>
                <tr>
                    <td align="right" >用户名：</td>
                    <td><input name="username" type="text" style='width:150px'></input></td>
                </tr>
                <tr>
                    <td align="right" >密码：</td>
                    <td><input name="password" type="password" style='width:150px'></input></td>
                </tr>
                <tr >
                    <td colspan="2" align="center"><input type="submit" value="登陆"></input>&nbsp;<input type="reset" value="取消"></input></td>
                </tr>
            </table>
        </form>
    </div>
    </div>
    <script type="text/javascript">
        $(function(){
            $('#ff').form({
                success:function(data){
                	if(data == 'yes'){
                		window.location.href = "logSuccess";
                	}else{
                		$.messager.alert('Info', "用户名或密码错误", '提示');
                	}
                    
                }
            });
        });
    </script>
</body>
</html>